<template>
  <div class="container">
    <RichText :html="note.richText" />
  </div>
</template>
<script setup lang="ts">
import type { BanquetOrderNote } from "@/types/banquet";
import request from "@/utils/http";
import { onMounted, ref } from "vue";
import RichText from "@/components/rich-text/index.vue";

const note = ref<BanquetOrderNote>({
  id: 0,
  orderId: 0,
  richText: "",
});

onMounted(async () => {
  loadDate();
});

const loadDate = async () => {
  const { data } = await request<BanquetOrderNote>({
    url: `/api/weapp/banquet/note`,
    method: "GET",
  });
  if (data) {
    note.value = data;
  }
};
</script>
<style lang="less" scoped></style>
